package cn.tedu.six2202.day02;

public class Demo02 {
    public static void main(String[] args) {
        int count = 0;
        int[] ary = {4,2,0,6};
        for (int i:ary){  //百位取值
            for (int j:ary){  //十位取值
                for (int k:ary){  //个位取值
                    if (i!=0 && i!=j && j!=k && i!=k){
                        count++;
                        System.out.print(i*100+j*10+k+" ");
                    }
                }
            }
        }
        System.out.println("三位数共有："+count+"个");

    }
}
